12-1: Create JS objects

For your assignment:

  1. Use the javascript parallel arrays to create three Javascript objects called book1, book2, book3.
  2. For each object create a method called studentDiscountPrice( ). This method will display the book price discounted by 20%.
  3. Display the contents of each book object on the web page.
  4. Create a Javascript array called javascriptBooks. Load the book objects into the array.
  5. Use a loop to process the contents of the javascriptBooks array. Display all the information for each book to the web page.